package cn.lovemmd.bms.service;

import cn.lovemmd.bms.pojo.Check;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.math.BigDecimal;

public interface CheckService {
    Integer addCheck(String tTime, String tWay, String tDetail, String tRemark, BigDecimal tAmount, BigDecimal icbcBalance, BigDecimal abcBalance, BigDecimal bcBalance, BigDecimal wechatBalance, BigDecimal overallBalance);
    Integer deleteCheck(int tId);
    Integer deleteCheckByTimeInterval(String startTime, String endTime);
    IPage<Check> selectCheckPageByTime(int pageNum, int pageSize, String time);
    IPage<Check> selectCheckPageByWay(int pageNum, int pageSize, String tWay);
    IPage<Check> selectCheckPageByTimeInterval(int pageNum, int pageSize, String startTime, String endTime);
    IPage<Check> selectCheckPageByLessThanAmount(int pageNum, int pageSize, BigDecimal amount);
    IPage<Check> selectCheckPageByGreaterThanAmount(int pageNum, int pageSize, BigDecimal amount);
    IPage<Check> selectCheckPageByAmountRange(int pageNum, int pageSize, BigDecimal minAmount, BigDecimal maxAmount);
    BigDecimal getTotalExpenditure();
    BigDecimal getGrossIncome();
    IPage<Check> selectCheckPage(int pageNum, int pageSize);
    Integer updateCheck(int tId, String tWay, String tDetail, String tRemark, BigDecimal tAmount, BigDecimal icbcBalance, BigDecimal abcBalance, BigDecimal bcBalance, BigDecimal wechatBalance, BigDecimal overallBalance);
}
